using Assets.Scripts.GDK;
using UnityEngine.UI;

namespace Brick
{
	public class DownBox : gdk_base_UI
	{
		public Button downBtn;

		public void onShowEvent()
		{
			base.gameObject.SetActive(value: true);
			downBtn.enabled = true;
		}

		public void onHideEvent()
		{
			base.gameObject.SetActive(value: false);
		}

		public void OnDownClick()
		{
			gdk_game_manager.PlaySound(AudioID.click);
			downBtn.enabled = false;
			gdk_game_manager.DispachEvent(EventID.GAME_ALLBALL_BACK);
		}

		public void OnDiamonClick()
		{
			gdk_game_manager.PlaySound(AudioID.click);
		}
	}
}

